'\" t
.\"     Title: ccninitaeskeystore
.\"    Author: [see the "AUTHOR" section]
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\"      Date: 01/10/2014
.\"    Manual: \ \&
.\"    Source: \ \& 0.8.2
.\"  Language: English
.\"
.TH "CCNINITAESKEYSTORE" "1" "01/10/2014" "\ \& 0\&.8\&.2" "\ \&"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
ccninitaeskeystore \- Initialize a CCNx AES (symmetric) keystore with given parameters
.SH "SYNOPSIS"
.sp
\fBccninitaeskeystore\fR [\-h] [\-f] [\-k \fIkeydata\fR] [\-p \fIpassword\fR] [\-o \fIdirectory\fR] [\-r] [\-d \fIdigest\fR] [\fIname\fR]
.SH "DESCRIPTION"
.sp
The \fBccninitaeskeystore\fR utility creates a new CCNx AES keystore\&. By default the keystore is always written to the directory $HOME/\&.ccnx\&. Also by default, the keystore will be created with a randomly generated key and will be named \&.ccnx_keystore\-<digest> where <digest> is the digest of the new key\&. If the \fIname\fR option is used, the keystore will be given that name instead\&.
.SH "OPTIONS"
.PP
\fB\-h\fR
.RS 4
Print usage to stderr and exit\&.
.RE
.PP
\fB\-f\fR
.RS 4
Overwrite an existing keystore of the same name if one exists\&.
.RE
.PP
\fB\-k\fR \fIkeydata\fR
.RS 4
Username for this keystore\&. Defaults to username of effective uid\&.
.RE
.PP
\fB\-p\fR \fIpassword\fR
.RS 4
Password to be used for this keystore\&. Defaults to the default CCN password\&.
.RE
.PP
\fB\-o\fR \fIdirectory\fR
.RS 4
Directory to write or search for keystores\&. Defaults to $HOME\&.
.RE
.PP
\fB\-r\fR
.RS 4
Read a keystore instead of creating one, and decrypt and print the hex value of the key\&.
.RE
.PP
\fB\-d\fR \fIdigest\fR
.RS 4
For \-r option, specify a digest for the key to decrypt\&.
.RE
.SH "EXIT STATUS"
.PP
\fB0\fR
.RS 4
Success
.RE
.PP
\fB1\fR
.RS 4
Failure (diagnostic error written on stderr)
.RE
.SH "SEE ALSO"
.sp
\fBccninitkeystore\fR(1)
.SH "AUTHOR"
.sp
Paul Rasmussen
